package service.impl;

import dao.CategoryDao;
import dao.impl.CategoryDaoimpl;
import pojo.Category;
import service.CategoryService;

import java.util.List;

/**
 * @author LiangHaiBo
 * @version 1.0
 * @date 2021.9.7 上午 9:06
 */
public class CategoryServiceimpl implements CategoryService {


    @Override
    public List<Category> getCategoryall() {
        CategoryDao categoryDao = new CategoryDaoimpl();
        List<Category> list = categoryDao.selectCategoryall();
        if(list != null){
            return list;
        }
        return null;
    }
}
